home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / COMDEBUG.C < prev    next >
C/C++ Source or Header  |  1989-05-01  |  271b  |  20 lines

  1. /* debug of calls to combios */
  2.  
  3. #include <stdio.h>
  4.  
  5. unsigned int combios (ax,dx)
  6.     unsigned ax,dx;
  7.  
  8. {
  9.     printf("combios(0x%04x,%d)\n",ax,dx);
  10.     fflush(stdout);
  11.     switch (ax >> 8)
  12.     {
  13.     case 2:
  14.         return 0x20c0;
  15.     case 4:
  16.         return 0xaa55;
  17.     }
  18.     return 0x2100;
  19. }
  20.